package com.sjme.Feign;

import com.sjme.domain.candidate.Candidate;
import com.sjme.domain.candidate.dto.CandidateDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient("candidate-server")
public interface CandidateClient {
    @PostMapping("/candidate/queryCandidateByIdsNew")
    List<Candidate> queryCandidateByIdsNew(@RequestBody List<String> candidateIdList);

    @PostMapping("/candidate/queryCandidateByCondition")
    List<Candidate> queryCandidateByCondition(@RequestBody CandidateDto candidate);
}